<%@page import="java.sql.SQLException"%>
<%@page import="cn.jhc.bean.ShopBean"%>
<%@page import="java.util.List"%>
<%@page import="cn.jhc.dao.ShopDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改吉他数据</title>
</head>
<script type="text/javascript">
	function MM_popupMsg(msg) {
		alert(msg);
	}
</script>
<style>
table{
margin-bottom:20px;
}
</style>
<body>
	<%
		request.setCharacterEncoding("UTF-8");
		String isbn = request.getParameter("isbn");
		ShopDAO dao = new ShopDAO();
		ShopBean t = null;
		try {
			t = dao.getShop(isbn);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		request.setAttribute("title", t);
	%>
	<div id="wrapper">
		<jsp:include page="./houtai_header.jsp"></jsp:include>
		<div id="left">
			<div class="button"><a href="adminchecklist.jsp?judgment=T&judgment2=T">订单信息</a></div>
			<div class="button"><a href="houtai_addjita.jsp">增加吉他</a></div>
			<div class="button"><a href="deletejita.do?bl=all">删除吉他</a></div>
			<div class="button2"><a href="alterjita.jsp">吉他信息</a></div>
		</div>
		<div id="right">
			<div id="right_top">
				<a>所在位置： 订单信息&gt;修改吉他信息</a>
			</div>
			<form action="alterjitadata.do" method="post">
			<table width="100%">
				<tr>
					<th height="25">编号</th>
					<th>名称</th>
					<th>地址</th>
					<th>厂商</th>
					<th>件数</th>
					<th>价格</th>
					<th>日期</th>
					<th>简介</th>
				</tr>


					<tr>
						<td height="30"><div align="center">${requestScope.title.isbn}<input type="hidden" value="${requestScope.title.isbn}" name="isbn"></div></td>
						<td><div align="center"><input type="text" value="${requestScope.title.title}"size="20" name="title"></div></td>
						<td><div align="center"><input type="text" value="${requestScope.title.address}"size="20"name="address"></div></td>
						<td><div align="center"><input type="text" value="${requestScope.title.manufacturers}"size="20"name="manufacturers"></div></td>
						<td><div align="center"><input type="text" value="${requestScope.title.amount}"size="6"name="amount"></div></td>
						<td><div align="center"><input type="text" value="${requestScope.title.price}"size="6"name="price"></div></td>
						<td><div align="center"><input type="text" value="${requestScope.title.publish_date}"size="20"name="publish_date"></div></td>
						<td><div align="center"><input type="text" value="${requestScope.title.remark}"size="20"name="remark"></div></td>
					</tr>
			</table>
			<div align="center">
				<input type="submit" value="修改" onclick="MM_popupMsg('修改成功！')">
				<input type="reset" value="重置">
				<a href="alterjita.jsp">返回</a>
			</div>
			</form>
		</div>
	</div>

</body>
</html>